package com.bee.caf_ss_android;


import com.bee.baselibrary.app.baseApplication;
import com.bee.baselibrary.base.BaseActivity;
import com.bee.baselibrary.base.ColumnValue;
import com.bee.baselibrary.utils.CloseAndroidPDialogUtil;
import com.bee.baselibrary.utils.GlideCircleTransform;
import com.bee.baselibrary.utils.Utils;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.request.RequestOptions;

/**
 * @author LiHao 南柯一梦宁沉沦 不梦前程不梦卿
 * @org www.fengjishi.com (重庆蜂效电子商务有限公司)
 * @data Created time 2019/4/3.
 * @email 930176087@qq.com
 * @pakeage com.bee.caf_ss_android
 * Personal signature 余生还长 何必慌张
 * Page description : TODO
 */
public class MyApplication extends baseApplication {
    public static ColumnValue value;
    public static RequestOptions headOptions;
    @Override
    public void onCreate() {
        super.onCreate();
        //工具类初始化
        Utils.init(this);

        //SharedPreferences初始化
        BaseActivity.value = new ColumnValue(this);
        value = new ColumnValue(this);

        //去掉在Android P上的提醒弹窗
        CloseAndroidPDialogUtil.closeAndroidPDialog();


       headOptions = new RequestOptions()
                .centerCrop()
                .placeholder(R.mipmap.head_default)
                .error(R.mipmap.head_default)
                .transform(new GlideCircleTransform(getApplicationContext()))
                .diskCacheStrategy(DiskCacheStrategy.NONE);
    }
}
